/*
 * Created on Sep 28, 2006
 */
package com.scalar.chiptrack.operations.distributor.forms;

import java.util.Calendar;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionMapping;

import com.scalar.chiptrack.ChipTrackActionForm;

/**
 * @author ravi
 */
public class DistributorSearchForm extends ChipTrackActionForm 
{
	int customerId = -1;
	int distributorId = -1;
	int manufacturingPartNo = -1;
	String year = "";

    String reportType = "salesReport";
    String fromDate   = null;
    String toDate     = null;

	public void reset( ActionMapping mapping, HttpServletRequest request )
	{
        Calendar cl   = Calendar.getInstance();
        year = cl.get( Calendar.YEAR )+"";
	}
	
	/**
	 * @return Returns the customerId.
	 */
	public int getCustomerId() {
		return customerId;
	}
	/**
	 * @param customerId The customerId to set.
	 */
	public void setCustomerId(int customerId) {
		this.customerId = customerId;
	}
	/**
	 * @return Returns the distributorId.
	 */
	public int getDistributorId() {
		return distributorId;
	}
	/**
	 * @param distributorId The distributorId to set.
	 */
	public void setDistributorId(int distributorId) {
		this.distributorId = distributorId;
	}
	/**
	 * @return Returns the manufacturingPartNo.
	 */
	public int getManufacturingPartNo() {
		return manufacturingPartNo;
	}
	/**
	 * @param manufacturingPartNo The manufacturingPartNo to set.
	 */
	public void setManufacturingPartNo(int manufacturingPartNo) {
		this.manufacturingPartNo = manufacturingPartNo;
	}
	/**
	 * @return Returns the year.
	 */
	public String getYear() {
		return year;
	}
	/**
	 * @param year The year to set.
	 */
	public void setYear(String year) {
		this.year = year;
	}

    public String getReportType() {
        return reportType;
    }

    public void setReportType(String reportType) {
        this.reportType = reportType;
    }

    public String getFromDate() {
        return fromDate;
    }

    public void setFromDate(String fromDate) {
        this.fromDate = fromDate;
    }

    public String getToDate() {
        return toDate;
    }

    public void setToDate(String toDate) {
        this.toDate = toDate;
    }
}